package com.hanrui.android.adapter;

import android.support.v4.content.ContextCompat;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hanrui.android.R;
import com.hanrui.android.model.ReceiptDocListBean;

import javax.inject.Inject;

/**
 * Created by Administrator on 2018/2/9.
 */

public class ReceiptDocListAdapter extends BaseQuickAdapter<ReceiptDocListBean.ReceiptDocListsBean,BaseViewHolder> {
    @Inject
    public ReceiptDocListAdapter(){
        super(R.layout.item_meet);
    }

    @Override
    protected void convert(BaseViewHolder helper, ReceiptDocListBean.ReceiptDocListsBean item) {
        helper.setVisible(R.id.status_tv,true);

        helper.setText(R.id.house_tv,item.getLwCompany())
                .setText(R.id.status_tv,item.getMobileWfState())
                .setTextColor(R.id.status_tv, ContextCompat.getColor(mContext,R.color.c_fcb421))
                .setText(R.id.title,item.getTitle())
                .setText(R.id.start_time,item.getFileDate())
                .setText(R.id.stop_time,item.getReceiptDate());
    }
}